package org.vaadin.example.biz;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.vaadin.example.model.SamplePerson;

import java.util.Optional;

public interface SamplePersonService {

    Optional<SamplePerson> get(Long id);

    SamplePerson update(SamplePerson entity);

    void delete(Long id);

    int count();

    Page<SamplePerson> list(Pageable pageable);

    //Page<SamplePerson> list(Pageable pageable, Specification<SamplePerson> filter)
}
